package com.sinosoft.entity;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.sinosoft.util.DateUtil;

public class DefRole {
    private Long roleId;

    private String roleCode;

    private String roleName;

    private String rcState;

    private String createDate;

    private String modifyDate;

    private Long createUserId;

    private Long modifyUserId;
    
    private Integer start; //分页查询时的查询起点
    
    private Integer rows; //分页查询时的每页展示条数
    
    private String createUserName; //关联查询创建人姓名
    
    private String modifyUserName; //关联查询修改人姓名
    
    private List<DefPrivilege> privilegeList;

    public List<DefPrivilege> getPrivilegeList() {
		return privilegeList;
	}

	public void setPrivilegeList(List<DefPrivilege> privilegeList) {
		this.privilegeList = privilegeList;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public String getModifyUserName() {
		return modifyUserName;
	}

	public void setModifyUserName(String modifyUserName) {
		this.modifyUserName = modifyUserName;
	}

	public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = StringUtils.isBlank(roleCode) ? null : roleCode.trim();
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = StringUtils.isBlank(roleName) ? null : roleName.trim();
    }

    public String getRcState() {
        return rcState;
    }

    public void setRcState(String rcState) {
        this.rcState = StringUtils.isBlank(rcState) ? null : rcState.trim();
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
    	 this.createDate = DateUtil.format(createDate);
    }

    public String getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = DateUtil.format(modifyDate);
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Long getModifyUserId() {
        return modifyUserId;
    }

    public void setModifyUserId(Long modifyUserId) {
        this.modifyUserId = modifyUserId;
    }

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}
    
}